﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections;
using System.Data;

using DataMining.Control.Transport;
namespace DataMining
{
    /// <summary>
    /// Window2.xaml 的交互逻辑
    /// </summary>
    public partial class Window2 : Window
    {
        public Window2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            TransporByTable trans = new TransporByTable();
            //trans.PatientInfor_Trans("患者信息表");
            //trans.Medical_Record_Trans("就诊记录表");
            //trans.DrAdvice_Detail_Trans("医嘱明细表");
            //trans.Fee_Record_Trans("收费记录表");
            //trans.Fee_Detail_Trans("收费明细表");
            //trans.LIS_Report_Trans("检验报告单");
            //trans.LIS_Indicators_Trans("检验指标表");
            //trans.LIS_Bacteria_Result_Trans("细菌结果");
            //trans.LIS_Allergy_Result_Trans("药敏结果");
            //trans.CIS_Operation_Detail_Trans("住院病历手术明细表");
            //trans.CIS_Mainl_Trans("住院病历主表");
            //trans.CIS_IH_Diagnosis_Detail_Trans("住院诊断明细表");
            //trans.CIS_LH_Diagnosis_Detail_Trans("出院诊断明细表");

        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            //TransporByTable trans = new TransporByTable();
            //trans.LIS_Bacteria_Result_Trans("药敏结果");
            DataTable dta = new DataTable();
                        String mdtname = "inpatient_record_MDT";
            String[] attr = { "creat_time","patient_id_seq", "card_number", "card_type", "shen_fen_zheng_number" };

            GetMDT getmdt = new GetMDT();
            dta=getmdt.GetdataWS(mdtname, attr);
            
            
        }
    }
}
